﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;

namespace Bordspil.Models
{
    public class GameInstance //instance af leik sem verdur spiladur
    {
        [Key]
        public int InstanceId { get; set; }

        [ForeignKey("Games")]
        public int GameId { get; set; }
        public virtual Games Games { get; set; }
        public string PlayerName { get; set; }
        public int NumberOfPlayers { get; set; }
        public bool IsActive { get; set; }
        public int Winner1Points { get; set; }
        public int Winner2Points { get; set; }
        public int Winner3Points { get; set; }
    }
}